‫Welcome to the main lecture, like I promised in the previous lecture.
‫Here we are going to be adding an item into our database table.
‫But what we're going to do in this one is slightly more different, is slightly different, because
‫we are going to be adding an item using variables that have been passed from another application.
‫Could be a mobile app or another front end application.
‫You are using with ERP next.
‫So you're going to be expecting these parameters here and then we're going to be inserting them into
‫the database.
‫So this could come from any application, basically.
‫So what do you want to be doing here?
‫We are going to be having either let me call this the code so we won't be expecting code from the front
‫end.
‫We're going to be expecting the name from the front end.
‫We're going to be expecting the group from the front end.
‫And we are going to expect you from the front end.
‫Now, when we come here, instead of hard coding things here, we will supply code and then we are going
‫to supply here the name and then we are going to apply here, the group.
‫And this makes it dynamic and then it would supply the unit of measure for the unit.
‫All right.
‫So this is going to come from the front end.
‫These variables are not known here now because we are not sending anything from here.
‫So if we try to send this thing now, what are going to get this is a message that is a message that
‫they are missing arguments within our one method.
‫So what we want to do is go to your body and pass them as our format is.
‫I'm going to be using that can composite us, Jason, if you want.
‫So just get whatever this is, it's missing.
‫So this is the code.
‫But this one was there as the key.
‫We have the name.
‫We have the group, and finally we have the unit of measure.
‫Right.
‫So this one I can see this one is the unit group is product.
‫Remember that as we added wire services and then I can call this one, this is easy.
‫And then here we have item number of that test.
‫I was like, why are we calling them test items or what are we calling them?
‫So here you have second item.
‫So let's call them let's call this one third API item.
‫OK.
‫Remember, this is just for the purpose of testing.
‫If you are running this on a mobile app, you're going to be passing these ones from that particular
‫app.
‫So if I send this request now, what I'm going to get now, let me see what it is seeing is a accomplished
‫that cannot get product is not a product.
‫I think it is products, products.
‫They send it again and we get back our data.
‫So what this means is that it has inserted and we can confirm that by going back here and reloading.
‫And yes, we have that debate them and everything has been inserted again, really come back to a database
‫and reload.
‫We have this and he has been inside it.
‫So what we have done here, we have expected this as parameters.
‫Of course, we can use QR documents here.
‫I just want to keep this thing very simple for you.
‫So are you going to get started quickly?
‫So put past them as expected parameters and then you are going to use these ones to insult them here.
‫So now with this one, I can pass any kind of arguments here.
‫I can make them dynamic again, pass anything here.
‫And it is going to be when I sent these to the database.
‫Thank you so much and see you in our ten, the lecture.